.class Lcom/glympse/android/glympse/DlgFacebookSettings$OnClickListenerSignInOut;
.super Ljava/lang/Object;
.source "DlgFacebookSettings.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/DlgFacebookSettings;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "OnClickListenerSignInOut"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/DlgFacebookSettings;


# direct methods
.method private constructor <init>(Lcom/glympse/android/glympse/DlgFacebookSettings;)V
    .locals 0
    .parameter

    .prologue
    .line 138
    iput-object p1, p0, Lcom/glympse/android/glympse/DlgFacebookSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgFacebookSettings;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/glympse/android/glympse/DlgFacebookSettings;Lcom/glympse/android/glympse/DlgFacebookSettings$OnClickListenerSignInOut;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 138
    invoke-direct {p0, p1}, Lcom/glympse/android/glympse/DlgFacebookSettings$OnClickListenerSignInOut;-><init>(Lcom/glympse/android/glympse/DlgFacebookSettings;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1
    .parameter "v"

    .prologue
    .line 143
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgFacebookSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgFacebookSettings;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgFacebookSettings;->UpdateControls()V

    .line 146
    sget-object v0, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/GlympseService;->GetFacebook()Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/FacebookWrapper;->IsSignedIn()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 148
    sget-object v0, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/GlympseService;->GetFacebook()Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/FacebookWrapper;->SignOut()V

    .line 156
    :goto_0
    return-void

    .line 154
    :cond_0
    sget-object v0, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/GlympseService;->GetFacebook()Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/FacebookWrapper;->SignIn()V

    goto :goto_0
.end method
